CC = gcc
CFLAGS = -Wall -g 
LDFLAGS = -lm
CPPFLAGS = -I $(HOME)/bip/src/pub/xml/include 
#CPPLIBS = /lib64/libxml2.so.2
CPPLIBS = -L/home/ap/sxclp2/bip/lib -liconv /lib64/libxml2.so.2
SRCS = $(wildcard *.c)
OBJS = $(patsubst %.c,%.o,$(SRCS))

run:$(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ $(CPPLIBS)
	objdump -S main.o > main.s
	@echo $(OBJS)

%.o:%.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<

.PHONY:
clean:
	rm -f *.o run core.* main.s



